
sequenceDiagram
    participant Main
    participant Utils
    participant DBConnector
    participant PinyinConverter
    Main->>Utils: parse_command_line_args()
    Utils-->>Main: return args
    Main->>DBConnector: connect()
    DBConnector-->>Main: return connection
    Main->>DBConnector: get_field_type(args.table_name, args.field_name)
    DBConnector-->>Main: return field_type
    alt field_type is string
        Main->>DBConnector: retrieve_field_data(args.table_name, args.field_name)
        DBConnector-->>Main: return field_data
        Main->>PinyinConverter: convert_to_pinyin(field_data)
        PinyinConverter-->>Main: return pinyin_data
        Main->>DBConnector: update_field_data(args.table_name, args.field_name, pinyin_data)
        DBConnector-->>Main: confirm update
    end
